package com.fengyun.selfAware;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.context.*;

import java.security.AccessControlContext;
import java.security.AccessController;
import java.security.PrivilegedAction;

/**
 * 1、BeanNameAware、BeanClassLoaderAware、BeanFactoryAware三个aware接口在invokeAwareMethod()方法中设置
 * 2、其他的aware在ApplicationContextAwareProcessor类行的invokeAwareInterfaces()方法中设置
 * todo 自定义Aware
 */
public class MyAwareProcessor implements BeanPostProcessor {

	@Override
	public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {

		


		return bean;
	}
}
